package com.disease.api.service.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.disease.api.service.entity.BaseUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@DS("master")
public interface UserMapper extends BaseMapper<BaseUser>{

    BaseUser findUser(@Param("username") String userName , @Param("password") String orgCode);

    BaseUser select(BaseUser baseUser);

    Long selectCount();

    void batchInsert(@Param("list") List<BaseUser> baseUsers);
}
